package tests;

import java.io.IOException;
import java.sql.SQLException;

import org.opencv.core.Core;

import featuresProcessing.MatchingSystem;

public class DBFiller {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
		
		
		try {
			MatchingSystem.getSharedInstance().batchAddSpeciesToDB("C:/Users/Luca/workspace/Leaves(ICL)/Leaves.txt", "C:/Users/Luca/workspace/Leaves(ICL)");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		
//		try {
//			MatchingSystem.getSharedInstance().batchAddImagesToDB("C:/Users/Luca/workspace/Leaves(ICL)/Leaves.txt", "C:/Users/Luca/workspace/reducedDB");
//		} catch (SQLException | IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
	}

}
